<template>
	<view @tap="tap">
		<image v-if="selected" src="/static/icon/shoppingcar_select_s.png" class="radioImg" />
		<image v-else src="/static/icon/shoppingcar_select_n.png" class="radioImg" />
	</view>
</template>

<script>
	export default {
		props: {
			selected: {
				type: Boolean,
				default: false
			}
		},
		data() {
			return {
				// selected: false
			}
		},
		methods: {
			tap() {
				this.$emit('radioChange')
			}
		}
	}
</script>

<style scoped>
.radioImg {
	width: 38rpx;
	height: 38rpx;
}
</style>